pkgname=karchive
pkgver=5.37.0
pkgrel=1
pkgdesc='Qt 5 addon providing access to numerous types of archives'
arch="all"
url='https://community.kde.org/Frameworks'
license="LGPL"
depends="qt5-qtbase"
makedepends="extra-cmake-modules doxygen qt5-qttools-dev"
source="https://download.kde.org/stable/frameworks/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz"
subpackages="$pkgname-dev"

prepare() {
	mkdir -p $srcdir/build
}

build() {
	cd $srcdir/build
	cmake "$srcdir"/${pkgname}-${pkgver} \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DKDE_INSTALL_LIBDIR=lib \
		-DBUILD_TESTING=OFF
	make
}

package() {
	cd $srcdir/build
	make DESTDIR="${pkgdir}" install
}
sha512sums="50f9298a785e3e46e4f34bcc489e59704ca464da4efbcad6c1a27e115ace7343936a1b126f0723f9acf55512ace05bba2cd37df02b2d1f54ae87b2a72c590a76  karchive-5.37.0.tar.xz"
